package com.mr.works;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

import java.io.IOException;

/**
 * @Author: shaochong
 * @Date: 2021/7/18
 * @Description:
 */
public class HDFSMkdir {
    public static void main( String[] args ) throws IOException {
        //1.创建配置文件
        Configuration config=new Configuration();
        //2.形成FileSyste, 唯一包括的选择
        FileSystem fs = FileSystem.get(config);
        fs.mkdirs(new Path("/user/student/ashaochong"));
    }
}
